package com.smart.mobile.api.bind;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.smart.common.utils.R;
import com.smart.mobile.client.YunDemoServiceClient;
/**
 * YunDemoServiceClient
 * @author zhouwc
 *
 */
@Controller
@RequestMapping("/yun/api")
public class BindController {
    private Logger log = LoggerFactory.getLogger(BindController.class);

    @Autowired
    private YunDemoServiceClient demoServiceClient;

    @ResponseBody
    @RequestMapping(value = "/test")
    public R test(){
    	log.info("do yun.api.test");
    	R geneEcpCodesByCardc = demoServiceClient.geneEcpCodesByCardc();
    	log.info(geneEcpCodesByCardc.toString());

        return R.ok("yun.api.test");
    }

}
